package edu.scau.cxq.gp.mapper;

import edu.scau.cxq.gp.dto.CustomerSignDTO;
import edu.scau.cxq.gp.entity.Customer;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 存储客户信息 Mapper 接口
 * </p>
 *
 * @author CXQ
 * @since 2022-01-30
 */
public interface CustomerMapper extends BaseMapper<Customer> {

    /**
     * 查找特定客户的签名
     * @return
     */
    String selectSignOfCustomer(@Param("cusId") Long cusId);

    /**
     * 获取所有的客户标签
     * @return
     */
    List<CustomerSignDTO> selectAllSignOfCustomer();
}
